package com.example.xyxwebbackend001.service.impl;

import com.example.xyxwebbackend001.mapper.CityMapper;
import com.example.xyxwebbackend001.model.entity.City;
import com.example.xyxwebbackend001.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService {
    @Autowired
    private CityMapper cityMapper;
    @Override
    public List<City> getAllCities() {
        return cityMapper.selectList(null);
    }
}
